<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd" >
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">  
</head>
<body>

<div id='resultado_ss_1'>
    <s:actionmessage theme="jquery" />
    <s:actionerror theme="jquery" /> 
   <s:form action="guardar_sitess.action" id="form_crearsitess" theme="simple">
	<s:set name="n_codigo"><s:property value="cod_prospecto" /></s:set>
	
	<s:url id="car_tabla1" value="agregar_item_ss.action" >
	   <s:param name='cod_prospecto' value='%{n_codigo}' ></s:param>
	</s:url>
	<s:url id="car_tablaagre" value="agregar_item_ss_.action" >
	   <s:param name='cod_prospecto' value='%{n_codigo}' ></s:param>
	</s:url>
	
	
	 <sj:div id='cargar_items' href="%{car_tabla1}" indicator="indicator_citems_ss01" >	
	 </sj:div>
	 <table width="100%">	
	    <tr>
	     <td colspan='2'>
	        <img id="indicator_citems_ss01" src="images/ajax-loader3.gif" alt="Cargando..." style="display: none" />
	     </td>
	    </tr>
		<tr>
		   <td width="10%">Observaciones</td>
		   	<td  width="70%" colspan='4' >
		   	   <s:textarea name='site.obs' rows="5" cols="50"></s:textarea>
			</td>
			<td>
			 <img id="indicator_citems_ss02" src="images/ajax-loader3.gif" alt="Cargando..." style="display: none" />
			<td>
		</tr>
		<tr>
			<td align='right' > 
			     <sj:a id="ajaxlinkxx1sssservi" href="%{car_tablaagre}" targets="cargar_items" 
						indicator="indicator_citems_ss01" button="true" buttonIcon="ui-icon-refresh" >
				  	Agregar fila
				</sj:a> 
			<td>
			<td colspan='4' align='center'> 
				<sj:submit targets="resultado_ss_1" indicator="indicator_citems_ss02" button="true" value="Guardar site survey" theme="simple" />
			</td>
			
		</tr>
		
	</table>
</s:form>

</div>
</body>
</html>